package com.zx.kitchen.index.common.base;

import android.content.Context;

/**
 * Created by Administrator on 2017/3/2.
 */

public class Contants {
    public static String URL = "http://www.fuwu008.com/wholesale/index.php/";


    public static String LOGIN_URL = URL + "Home/Login/index";
    public static String PURCHASE_URL = URL + "Home/Purchase/index";
    public static String INDEX_URL = URL + "Home/Index/index";
    public static String INDEX_ORDER_URL = URL + "Home/Index/order";
    public static String PURCHASE_ORDER_URL = URL + "Home/Purchase/order";
    //分类菜品数据和子分类数据
    public static String INDEX_ORDER_NEXT_URL = URL + "Home/Index/get_dishes_by_fid";
    //填写选择商品的价格数量等信息
    public static String INDEX_PRICENUM_URL = URL + "Home/Index/price_num";
    public static String PURCHASE_PRICENUM_URL = URL + "Home/Purchase/price_num";

    public static String INDEX_CREATE_ORDER_URL = URL + "Home/Index/create";
    public static String PURCHASE_CREATE_ORDER_URL = URL + "Home/Purchase/create";

    public static String INDEX_PRINT_ORDER_URL = URL + "Home/Index/print_order";
    public static String PURCHASE_PRINT_ORDER_URL = URL + "Home/Purchase/print_order";


    public static String COMPANY_INDEX_URL = URL + "Home/Company/index";
    public static String COMPANY_SAVE_URL = URL + "Home/Company/save";
    public static String BUSINESSREPORT_TOTAL_URL = URL + "Home/BusinessReport/index_total";
    public static String PURCHASEREPORT_TOTAL_URL = URL + "Home/PurchaseReport/index_total";
    public static String PURCHASEREPORT_DAYDETAIL_URL = URL + "Home/PurchaseReport/day_detail";
    public static String BUSINESSREPORT_DAYDETAIL_URL = URL + "Home/BusinessReport/day_detail";
    public static String BUSINESSREPORT_INDEX_PICTURE_URL = URL + "Home/BusinessReport/index_picture";
    public static String PURCHASEREPORT_INDEX_PICTURE_URL = URL + "Home/PurchaseReport/index_picture";
    public static String BUSINESSREPORT_GOODS_INDEX_URL = URL + "Home/BusinessReport/goods_index";
    public static String PURCHASEREPORT_GOODS_INDEX_URL = URL + "Home/PurchaseReport/goods_index";
    //分类获取菜品统计
    public static String BUSINESSREPORT_GETDISHES_BY_FID_URL = URL + "Home/BusinessReport/get_dishes_by_fid";
    public static String PURCHASEREPORT_GETDISHES_BY_FID_URL = URL + "Home/PurchaseReport/get_dishes_by_fid";
    public static String BUSINESSREPORT_GOODSDETAIL_URL = URL + "Home/BusinessReport/goods_detail";
    public static String PURCHASEREPORT_GOODSDETAIL_URL = URL + "Home/PurchaseReport/goods_detail";
    public static String BUSINESSREPORT_GOODSDETAIL_PIC_URL = URL + "Home/PurchaseReport/goods_detail_picture";
    public static String PURCHASEREPORT_GOODSDETAIL_PIC_URL = URL + "Home/BusinessReport/goods_detail_picture";
    public static String BUSINESSREPORT_GOODS_DAY_DETAIL_URL = URL + "Home/PurchaseReport/goods_day_detail";
    public static String PURCHASEREPORT_GOODS_DAY_DETAIL_URL = URL + "Home/PurchaseReport/goods_day_detail";


    public static String spUserName = "userName";
    public static String spPassWord = "passWord";
    public static String spToken = "token";
    public static String IS_LOGIN = "IS_LOGIN";

    /**
     * 获取资源文件中string
     *
     * @param context
     * @param id
     * @return
     */
    public static String getString(Context context, int id) {
        String s = context.getResources().getString(id);
        return s;
    }

}
